package cn.edu.nju.freshdelivery.dao;

import java.util.List;

import cn.edu.nju.freshdelivery.model.Dish;

public interface DishDAO {

	public void save(Dish transientInstance);

	public void delete(Dish persistentInstance);

	public void update(Dish persistentInstance);

	public Dish findById(java.lang.Integer id);

	public List<Dish> findByExample(Dish instance);

	public List findByProperty(String propertyName, Object value);

	public List<Dish> findByName(Object name);

	public List<Dish> findByPrice(Object price);

	public List<Dish> findByDescription(Object description);

	public List<Dish> findByPhoto(Object photo);

	public List<Dish> findByStar(Object star);

	public List<Dish> findByCatagory(Object catagory);

	public List<Dish> findBySeller(Object seller);

	public List findAll();

	public Dish merge(Dish detachedInstance);

}